package stark.app.function.stkctrl;

import com.blankj.utilcode.util.ToastUtils;
import com.stark.ctrl.lib.StkController;

import stark.app.R;
import stark.app.databinding.FragmentStkCtrlDemoBinding;
import stark.common.basic.base.BaseNoModelFragment;

/**
 * Author：daizhongbin on 2024/7/31
 * Email：1027154338@qq.com
 * Desc:
 */
public class StkCtrlDemoFragment extends BaseNoModelFragment<FragmentStkCtrlDemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.fragment_stk_ctrl_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btGoodComment.setOnClickListener(v -> {
            StkController.onGoodCommentEvent(getActivity(), () -> {
                //好评了，在这里做下一步操作的处理，因为demo，这里只弹出一个toast
                ToastUtils.showShort("请执行下一步操作");
            });
        });
    }

    @Override
    protected void initData() {

    }
}
